<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>滴答办公系统-学员详细</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		  content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="media/layui/css/layui.css" media="all">
	<link type="text/css" rel="stylesheet" href="/media/toastr/toastr.min.css">
	<script src="/media/js/jquery.min.js"></script>
	<script type="text/javascript" src="/media/toastr/toastr.min.js"></script>
</head>
<body>
<div class="layui-container" style="margin-top: 5px">
	<form class="layui-form" action="studentadd.do" method="post">
		<div class="layui-form-item">
			<label class="layui-form-label">学员姓名</label>
			<div class="layui-input-block">
				<div class="layui-form-mid layui-word-aux" id="name">小张</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">所属班级</label>
			<div class="layui-input-block">
				<div class="layui-form-mid layui-word-aux" id="cname">JAVAEE1805</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">性别</label>
			<div class="layui-input-block">
				<div class="layui-form-mid layui-word-aux" id="sex">男</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">邮箱</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="email">345353543@qq.com</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">手机号</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="phone">144576800324</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">QQ</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="qq">34543556765</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">身份证号</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="cardno">144576768768768768800324</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">毕业学校</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="school">哈佛大学</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">学历</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="education">博士后</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">出生日期</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="birthday">1994-10-10</div>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">入学日期</label>
			<div class="layui-input-inline">
				<div class="layui-form-mid layui-word-aux" id="createdate">2016-10-10</div>
			</div>
		</div>
	</form>
</div>


<script src="media/layui/layui.js"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
	var urlParam= window.location.search;
	var id = urlParam.substring(urlParam.lastIndexOf('=')+1, urlParam.length);
	$.ajax({
		url:"/queryStudentById",
		data:{id:id},
		datatype:"json",
		success:function (data) {
			var d = JSON.parse(data)
			$("#name").html(d.name);
			$("#cname").html(d.cname);
			$("#sex").html(d.sex);
			$("#email").html(d.email);
			$("#phone").html(d.phone);
			$("#qq").html(d.qq);
			$("#cardno").html(d.cardno);
			$("#school").html(d.school);
			$("#education").html(d.education);
			$("#birthday").html(d.birthday);
			$("#createdate").html(d.createdate);
		}
	})
</script>
</body>
</html>